<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/11/29/029
 * Time: 11:49
 */

namespace app\api\validate;


class PayValidate extends BaseValidate {
    protected $rule = [
        'trade_type' => 'require|in:JSAPI,APP,NATIVE',
        'model' => 'require|in:order,order_buy,order_recharge,order_buy_after_sale,order_after_sale',
        'in_station_pay_model' => 'require|in:order,order_after_sale'
    ];

    protected $scene = [
        'pay'  =>  ['model'],
        'in_station_pay' => ['in_station_pay_model'],
    ];
}